package com.woniuxy02;

public class Test03 {
    public static void main(String[] args) {
//        String str="zs.11.male.135xxxx";
//        String[] strs = str.split("\\.");
//        System.out.println(Arrays.toString(strs));
        String str="abc123djava.ef456gj.avax789yzjava";
        System.out.println(str.replace('j', 'm'));
        System.out.println(str.replace("java", "sql"));
        System.out.println(str.replace(".", "-"));
        System.out.println(str.replaceAll("\\.", "-"));
        System.out.println(str.replaceAll("\\d", "*"));
        System.out.println(str.replaceAll("\\d+", "*"));

    }

}
